#!/bin/bash

#CONTAINER_NAME="rk_android13"
CONTAINER_NAME=`basename "$(pwd)"`

if docker ps -a | grep -q $CONTAINER_NAME; then
    echo "container '$CONTAINER_NAME' exist，will remove it..."
    docker rm -f $CONTAINER_NAME
    echo "container '$CONTAINER_NAME' has been removed"
else
    echo "container '$CONTAINER_NAME' do not exist. "
fi

docker run -it -v  `pwd`:/home/test/$(basename "$(pwd)")  --privileged   --name=$CONTAINER_NAME   biaowang/smart_env:v1  /bin/bash 
